<?php
class valida {
  public $cep; // string
  public $logradouro; // string
  public $bairro; // string
  public $cidade; // string
  public $estado; // string
}

class validaResponse {
  public $return; // boolean
}

class remEndereco {
  public $cep; // string
}

class remEnderecoResponse {
  public $return; // boolean
}

class getEndereco {
  public $cep; // string
}

class getEnderecoResponse {
  public $return; // Endereco
}

class getCEP {
  public $logradouro; // string
  public $bairro; // string
  public $estado; // string
  public $cidade; // string
}

class getCEPResponse {
  public $return; // string
}

class addEndereco {
  public $cep; // string
  public $logradouro; // string
  public $bairro; // string
  public $cidade; // string
  public $estado; // string
}

class addEnderecoResponse {
  public $return; // boolean
}

class Endereco {
  public $bairro; // string
  public $cidade; // string
  public $estado; // string
  public $logradouro; // string
}


/**
 * EnderecosService class
 * 
 *  
 * 
 * @author    {author}
 * @copyright {copyright}
 * @package   {package}
 */
class EnderecosService extends SoapClient {

  private static $classmap = array(
                                    'valida' => 'valida',
                                    'validaResponse' => 'validaResponse',
                                    'remEndereco' => 'remEndereco',
                                    'remEnderecoResponse' => 'remEnderecoResponse',
                                    'getEndereco' => 'getEndereco',
                                    'getEnderecoResponse' => 'getEnderecoResponse',
                                    'getCEP' => 'getCEP',
                                    'getCEPResponse' => 'getCEPResponse',
                                    'addEndereco' => 'addEndereco',
                                    'addEnderecoResponse' => 'addEnderecoResponse',
                                    'Endereco' => 'Endereco',
                                   );

  public function EnderecosService($wsdl = "EnderecosService.xml", $options = array()) {
    foreach(self::$classmap as $key => $value) {
      if(!isset($options['classmap'][$key])) {
        $options['classmap'][$key] = $value;
      }
    }
    parent::__construct($wsdl, $options);
  }

  /**
   *  
   *
   * @param addEndereco $parameters
   * @return addEnderecoResponse
   */
  public function addEndereco(addEndereco $parameters) {
    return $this->__soapCall('addEndereco', array($parameters),       array(
            'uri' => 'http://testcase.axis2.home',
            'soapaction' => ''
           )
      );
  }

  /**
   *  
   *
   * @param valida $parameters
   * @return validaResponse
   */
  public function valida(valida $parameters) {
    return $this->__soapCall('valida', array($parameters),       array(
            'uri' => 'http://testcase.axis2.home',
            'soapaction' => ''
           )
      );
  }

  /**
   *  
   *
   * @param getEndereco $parameters
   * @return getEnderecoResponse
   */
  public function getEndereco(getEndereco $parameters) {
    return $this->__soapCall('getEndereco', array($parameters),       array(
            'uri' => 'http://testcase.axis2.home',
            'soapaction' => ''
           )
      );
  }

  /**
   *  
   *
   * @param remEndereco $parameters
   * @return remEnderecoResponse
   */
  public function remEndereco(remEndereco $parameters) {
    return $this->__soapCall('remEndereco', array($parameters),       array(
            'uri' => 'http://testcase.axis2.home',
            'soapaction' => ''
           )
      );
  }

  /**
   *  
   *
   * @param getCEP $parameters
   * @return getCEPResponse
   */
  public function getCEP(getCEP $parameters) {
    return $this->__soapCall('getCEP', array($parameters),       array(
            'uri' => 'http://testcase.axis2.home',
            'soapaction' => ''
           )
      );
  }

}

?>
